package com.example.mobiledestroy.receiver;

import com.example.mobiledestroy.util.SMSService;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class BootBroadcastReceiver extends BroadcastReceiver{
	
	@Override
	public void onReceive(Context context, Intent intent) {
		if(intent.getAction().equals("android.intent.action.BOOT_COMPLETED")){
			Intent a = new Intent(context,SMSService.class);
			context.startService(a);
			Log.i("recieve", "开机启动服务");
		}
	}
}
